import { getUserInfo, toast, makePhoneCall} from '../../utils/wxapi.js'
import { post} from '../../utils/request.js'
import global from '../../utils/global.js'

let that
Page({
  data: {
    img:"../../image/person.png",
    user:{}
  },
  onLoad: function (options) {
    that = this
    console.log(wx.getStorageSync("useInfo"))
    that.setData({
      user: wx.getStorageSync("useInfo")
    })
  },
  // 拨打电话
  makePhoneCall:phone=>{
    makePhoneCall("400-056-5858")
  },
  errorFunction: function () {
    this.setData({
      avatar: '/image/head.png'
    })
  }
})